import java.awt.Point;


public class PLPatternRightOf extends PLPattern{
	
	public PLPatternRightOf(){
		super("Right");
	}
	
	public float ValidateResponse(PLShape query, PLShape response, PLOutShape outBetterMatch){
		
		//returns confidence of 1 if response line is above query line, else 0
		float conf=0;
		
		if(query.GetCenter().x>response.GetCenter().x){
			conf=1;
		}
		else{
			conf=0;
		}		

		return conf;			
	
	}
	
}
